package com.apex.springcloud.dao;

import com.apex.springcloud.pojo.Dept;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Component;

import java.util.List;

@Mapper
@Component
public interface DeptDao {

    public boolean addDept(Dept dept);   //添加一个部门

    public Dept queryById(Long id);      //根据id查询部门

    public List<Dept> queryAll();        //查询所有部门



}
